package com.twu.biblioteca;

import java.io.IOException;
import java.io.PrintStream;

public class BookReserver {
    PrintStream printStream;
    UserInputReader userInputReader;
    Library library;

    BookReserver(PrintStream printStream, UserInputReader userInputReader, Library library) {
        this.printStream = printStream;
        this.userInputReader = userInputReader;
        this.library = library;
    }

    public void reserveBook() throws IOException {
        printStream.println("Enter the title of the book you wish to reserve.");
        String title = userInputReader.readUserInput();
        library.reserveBook(title);
    }
}
